#include "HeatLogicControlStruct.h"

HeatLogicControlStruct::HeatLogicControlStruct()
{
    m_isOpen = false;
    m_curTempAddress = 0;
    m_setTempAddress = 0;
    m_errorRange = 1;
    m_SWStata=0;
    m_curTempdata=0;
}

bool HeatLogicControlStruct::isOpen() const
{
    return m_isOpen;
}

void HeatLogicControlStruct::setIsOpen(bool isOpen)
{
    m_isOpen = isOpen;
}

quint16 HeatLogicControlStruct::curTempAddress() const
{
    return m_curTempAddress;
}

void HeatLogicControlStruct::setCurTempAddress(const quint16 &curTempAddress)
{
    m_curTempAddress = curTempAddress;
}

ControlPointStruct HeatLogicControlStruct::closePoint() const
{
    return m_closePoint;
}

void HeatLogicControlStruct::setClosePoint(const ControlPointStruct &closePoint)
{
    m_closePoint = closePoint;
}

ControlPointStruct HeatLogicControlStruct::openPoint() const
{
    return m_openPoint;
}

void HeatLogicControlStruct::setOpenPoint(const ControlPointStruct &openPoint)
{
    m_openPoint = openPoint;
}

ControlPointStruct HeatLogicControlStruct::greaterPoint() const
{
    return m_greaterPoint;
}

void HeatLogicControlStruct::setGreaterPoint(const ControlPointStruct &greaterPoint)
{
    m_greaterPoint = greaterPoint;
}

ControlPointStruct HeatLogicControlStruct::lessPoint() const
{
    return m_lessPoint;
}

void HeatLogicControlStruct::setLessPoint(const ControlPointStruct &lessPoint)
{
    m_lessPoint = lessPoint;
}

quint16 HeatLogicControlStruct::setTempAddress() const
{
    return m_setTempAddress;
}

void HeatLogicControlStruct::setSetTempAddress(const quint16 &setTempAddress)
{
    m_setTempAddress = setTempAddress;
}

quint16 HeatLogicControlStruct::setTempValue() const
{
    return m_setTempValue;
}

void HeatLogicControlStruct::setSetTempValue(const quint16 &setTempValue)
{
    m_setTempValue = setTempValue;
}

quint16 HeatLogicControlStruct::errorRange() const
{
    return m_errorRange;
}

void HeatLogicControlStruct::setErrorRange(const quint16 &errorRange)
{
    m_errorRange = errorRange;
}


quint16 HeatLogicControlStruct::getCurTempdata()
{
    return m_curTempdata;
}
void HeatLogicControlStruct::setCurTempdata(quint16 data)
{
    m_curTempdata=data;
}

quint8 HeatLogicControlStruct::getSWStata()
{
    return m_SWStata;
}
void HeatLogicControlStruct::setSWStata(quint8 stata)
{
    m_SWStata=stata;
}
QString HeatLogicControlStruct::getMaxerrorRange()
{
   return m_MaxerrorRange;
}
void HeatLogicControlStruct::setMaxerrorRange(QString data)
{
    m_MaxerrorRange=data;
}

QString HeatLogicControlStruct::getMinerrorRange()
{
   return m_MinerrorRange;
}
void HeatLogicControlStruct::setMinerrorRange(QString data)
{
    m_MinerrorRange=data;
}
